package com.cyam.base;

import java.util.List;
import java.util.Map;
/**
 * 公共mapper接口
 * @author CourageAQ
 *
 * @param <T>
 */
public abstract interface IBaseMapper<T> {

	/**插入操作*/
	public abstract void insertObject(T t) throws Exception;
	
	/**更新操作*/
	public abstract void modifyObject(T t) throws Exception;
	
	/**删除操作*/
	public abstract void deleteObject(int id) throws Exception;
	
	/**查询*/
	public abstract List<T> selectAll(Map<String, Object> map) throws Exception;
	
	/**分页查询*/
	public abstract List<T> selectPage(Map<String, Object> map) throws Exception;
	
	/**查询单个*/
	public abstract T selectOne(Map<String, Object> map) throws Exception;
	
	/**计数查询*/
	public abstract int countObject(Map<String, Object> map) throws Exception;
}
